package io.gitee.chearnee.fw.openapi.annotation;

/**
 * 忽略登录
 *
 * @author yangzhi
 * @Date 2021/6/22 10:39
 **/

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Target({ElementType.METHOD, ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
public @interface OpenApiAuth {

  /**
   * 忽略openApi全部限制
   *
   * @return
   */
  boolean ignoreAuth() default false;

  /**
   * 忽略accessToken注解
   *
   * @return
   */
  boolean ignoreAccessTokenAuth() default false;
}
